Comparing Observed Bug and Productivity Rates for Java and C++

نویسنده

  • Geoffrey Phipps
چکیده

An experiment was conducted to compare programmer productivity and defect rates for Java and C++. A modified version of the Personal Software Process (PSP) was used to gather defect rate, bug rate, and productivity data on C++ and Java during two real world development projects. A bug is defined to be a problem detected during testing or deployment. A defect is either a bug, or an error detected during compile time. A typical C++ program had two to three times as many bugs per line of code as a typical Java program. C++ also generated between 15 per cent and 50 per cent more defects per line, and perhaps took six times as long to debug. Java was between 30 per cent and 200 per cent more productive, in terms of lines of code per minute. When defects were measured against development time, Java and C++ showed no difference, but C++ had two to three times as many bugs per hour. Statistics were generated using Student’s t-test at a 95 per cent confidence level. Some discussion of why the differences occurred is included, but the reasons offered have not been tested experimentally. The study is limited to one programmer over two projects, so it is not a definitive experimental result. The programmer was experienced in C++, but only learning Java, so the results would probably favour Java more strongly for equally-experienced programmers. The experiment shows that it is possible to experimentally measure the fitness of a programming language. Copyright  1999 John Wiley & Sons, Ltd.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Comparison of the Suitability of Four Commercial Pistachio Cultivars to the Pistachio Green Stink-bug, Brachynema germari, under the Laboratory Conditions

The pistachio green stink-bug, Brachynema germari Kolenati (Hem.: Pentatomidae), is an important pest of pistachio in Iran. In this research, the effects of four commercial pistachio cultivars that are commonly grown in Iran including Kaleghochi, Ahmadaghaii, Ohadi and Akbari were evaluated on the biology (developmental time, mortality rate, longevity) and demographic parameters of <em...

متن کامل

Coping with Java Programming Stress

M any developers view Java as the language solution to complex software engineering problems. They expect Java programs to resist system crashes, to be written once and run everywhere, and to withstand malicious attacks. For the most part, these expectations are reasonable. Java has many attributes that promote reliable, bug-free software: memory management to prevent memory leaks, strong type ...

متن کامل

Antimalarial activity of extract and fractions of Castanopsis costata (Blume) A.DC

Objective: One of the biggest health problems in the world, which occurs in more than 90 countries, is the spread of malaria. Cep-cepan leaves (Castanopsis  costata), was empirically used as an antimalarial herb in North Sumatra. Since its use has not been scientifically studied, we investigated the antimalarial activity of extract and fractions of C. costata ...

متن کامل

Novel Single Nucleotide Polymorphisms (SNPs) in Intron 2 and Exon 3 Regions of Leptin Gene in Sumba Ongole Cattle

The bovine leptin (LEP) gene was widely used as a candidate gene for molecular selection to improve productivity traits of cattle. This study was carried out to identify single nucleotide polymorphisms (SNPs) in the LEP gene of Sumba Ongole (SO, Bos indicus) cows using sequencing method. A total of 31 animals were used in this study for analyses. Research showed that total of 16 SNPs w...

متن کامل

A Novel Ranking Approach Relevant Files for Bug Reports Using Domain Knowledge

When a new bug report is received, developers usually need to reproduce the bug and perform code reviews to find the cause, a process that can be tedious and time consuming. A tool for ranking all the source files with respect to how likely they are to contain the cause of the bug would enable developers to narrow down their search and improve productivity. This paper introduces an adaptive ran...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Softw., Pract. Exper.

دوره 29  شماره 

صفحات  -

تاریخ انتشار 1999